package com.yu.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yu.crm.domain.pojo.CrmUser;
import com.yu.crm.domain.pojo.CrmUserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户角色表 服务类
 * </p>
 *
 * @author donnie-bin
 * @since 2019-06-10
 */
public interface CrmUserRoleService extends IService<CrmUserRole> {

    boolean saveBatch(List<CrmUserRole> entityList);

    boolean removeBatch(List<CrmUserRole> entityList);

    /**
     * 根据roleId查询用户列表
     * @param page
     * @param roleId
     * @return
     */
    IPage<CrmUser> listUserByRoleId(IPage<CrmUser> page, Long roleId,String condition);
}
